import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:solar/page/home.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  Color _themeColor = Colors.lightGreen; //当前主题颜色
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '24节气普及',
      theme: ThemeData(
        primarySwatch: _themeColor,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key}) : super(key: key);

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('24节气'),
        ),
        body: FlutterEasyLoading(child: HomePage()));
  }
}
